package com.example.administrator.zhongyichou.fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.ListView;

import com.example.administrator.zhongyichou.adapter.HelpedDiseaseAdapter;
import com.example.administrator.zhongyichou.Bean.BaseEventBean;
import com.example.administrator.zhongyichou.base.BaseFragment;
import com.example.administrator.zhongyichou.net.core.HttpLoader;
import com.example.administrator.zhongyichou.net.protocol.GsonBaseProtocol;
import com.example.administrator.zhongyichou.R;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by lichenyu on 2017/11/27.
 * 描述：我帮助过的疾病
 */

public class HelpedDiseaseFragment extends BaseFragment {
    @BindView(R.id.listview)
    ListView listview;
    HelpedDiseaseAdapter adapter;

    @Override
    protected void responseData(GsonBaseProtocol mGsonBaseProtocal) {

    }

    @Override
    protected HttpLoader initHttpLoader() {
        return null;
    }

    @Override
    protected View initContentView() {
        View view = LayoutInflater.from(getContext()).inflate(R.layout.helped_disease_fragment, null);
        ButterKnife.bind(this, view);
        adapter = new HelpedDiseaseAdapter(getContext(), new ArrayList());
        listview.setAdapter(adapter);
        return view;
    }

    @Override
    public boolean onEventBus(BaseEventBean baseEventBean) {

        return false;
    }
}
